package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.domain.TravelTemplate;
import cn.wolfcode.luowowo.search.repository.TravelTemplateRepository;
import cn.wolfcode.luowowo.search.service.ITravelEsService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TravelEsServiceImpl implements ITravelEsService {

    @Autowired
    private TravelTemplateRepository repository;
    @Override
    public void save(TravelTemplate template) {
        repository.save(template);

    }

    @Override
    public List<TravelTemplate> findByDestName(String name) {
        return repository.findByDestName(name);
    }
}
